#include "foreign_refered_constraint.h"

ForeignReferedConstraint::ForeignReferedConstraint(const std::string& attributeName,
                                                   const std::string& constraintName,
                                                   const std::string& referenceTableName,
                                                   const std::string& referenceAttributeName):
    Constraint(attributeName, constraintName), _referenceTableName(referenceTableName), _referenceAttributeName(referenceAttributeName) {
}

std::string ForeignReferedConstraint::GetReferenceTableName() const {
    return _referenceTableName;
}

void ForeignReferedConstraint::SetReferenceTableName(const std::string& referenceTableName) {
    _referenceTableName = referenceTableName;
}

std::string ForeignReferedConstraint::GetReferenceAttributeName() const {
    return _referenceAttributeName;
}

void ForeignReferedConstraint::SetReferenceAttributeName(const std::string& referenceAttributeName) {
    _referenceAttributeName = referenceAttributeName;
}
